{% extends "bootstrap/base.html" %}
{% block body_attribs%}
{{super()}}
<link rel="icon" href="{{ url_for('static', filename='favicon.ico', _external=True )}}">
<link rel="shortcut icon" href="{{url_for('static', filename='images/boat.ico', _external=True) }}">
<link rel="bookmark" href="{{ url_for('static', filename='images/boat.ico', _external=True) }}">
{% endblock %}

{% block title %} my :: To :: do {%  endblock %}

{% block navbar %}
<!--nav bar-->
<nav class="navbar navbar-inverse container">
    <div class="navbar-header">
        <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#example-collapse-toggle">
            <span class="sr-only">切换导航</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="{{ url_for('show_to_do_list', page=1) }}">TODO</a>
    </div>

    <div class="collapse navbar-collapse" id="example-collapse-toggle">
        <ul class="nav navbar-nav">
            <!--logout btn-->
            {% if current_user.is_authenticated %}
                <li><a class="btn" href="{{ url_for('check_mail') }}">查快递</a></li>
                <li><a class="btn" href="{{ url_for('logout') }}">登出</a></li>
                <li><a class="btn" href="{{ url_for('show_to_do_list', page=1) }}">用户信息</a></li>
            {% else %}
                <li><a href="{{ url_for('register') }}">注册账号</a></li>
            {% endif %}
            <!--<li><a href="">1</a></li>-->
            <li class="dropdown">
                <a href="" class="dropdown-toggle" data-toggle="dropdown">
                    <span class="glyphicon glyphicon-user"></span>
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li class="divider"></li>
                    <li class="dropdwon-header">生活信息</li>
                    <li><a>1.1</a></li>
                    <li><a>1.2</a></li>
                    <li><a>1.3</a></li>
                    <li><a>1.4</a></li>
                    <li class="divider"></li>
                    <li class="dropdown-header">个人信息</li>
                    <li><a>2.1</a></li>
                    <li><a>2.2</a></li>
                    <li><a>2.3</a></li>
                </ul>
            </li>
        </ul>
    </div>


</nav>
{% endblock %}

{% block content %}
<div class="container">
    <!--flash messages-->
    {% for message in get_flashed_messages() %}
    <div class="alert alert-warning slert-dismissible" role="alert">
        <button type="button" class="close" data-dismiss="alert">
            <span aria-hidden="true">&times;</span>
            <span class="sr-only">关闭</span>
        </button>
        {{ message }}
    </div>
    {% endfor %}

    <!--table body block-->
    {% block page_content %}
    {% endblock %}
</div>

{% block footer %}
<div class="footer" align="center">
    <div class="seprator">
        <hr/>
        <br/>
    </div>
    <div class="container">
        <div class="copyleft">
            CopyLight Shared & ReDistributed By<a href="http://github.com/hzsai">&copy;Hertzsai</a> Drills From <a
                href="http://github.com/lalor/todolist">&copy;lalor/todolist</a> <br/>
            Power by <a href="http://pcoo.flask.org">Flask</a> <br/>
        </div>
    </div>
</div>
{% endblock %}

{% endblock %}


